package common

import (
	"goblog/config"
	"goblog/models"
	"sync"
)

var Termplate models.HtmlTemplate

func LoadTemplate() {
	w := sync.WaitGroup{}
	w.Add(1)
	go func() {
		// 耗时
		Termplate = models.InitTemplate(config.Cfg.System.CurrentDir + "/template/")
		w.Done()
	}()
	w.Wait()
}
